class CreateMaterials < ActiveRecord::Migration
  def self.up
    create_table :materials do |t|
      t.integer :base_material_id
      t.string  :mtype    #蔬菜: vegetable, 肉：meat
      t.integer :user_id
      t.integer :amount   # 份量
      t.timestamps
    end
  end

  def self.down
    drop_table :materials
  end
end
